<script setup lang="ts" name="LoginRedirect">
const str = location?.href; // 取得整个地址栏
const code = str.substring(str.indexOf('code=') + 5, str.indexOf('&state'));
const url = isValue('http://192.168.8.25:8003/#/', 'http://mes.cnrecyc.com/pc/#/');
window.location.href = `${url}login?code=${code}&state=123`;
</script>
